package change;

import classification.PaymentClassification;
import classification.imp.HourlyClassification;
import schedule.PaymentSchedule;
import schedule.imp.WeeklySchedule;
import transaction.Transaction;

public class ChangeHourlyClassificationTransaction extends ChangeClassificationTransaction {
    double hourlyRate;
    public ChangeHourlyClassificationTransaction(int empid, double hourlyRate) {
        super(empid);
        this.hourlyRate = hourlyRate;
    }

    @Override
    public PaymentClassification getClassification() {
        return new HourlyClassification(hourlyRate);
    }

    @Override
    public PaymentSchedule getPaymentSchedule() {
        return new WeeklySchedule();
    }
}
